5000 = 0x1388
4321 = 0x10E1
-1000 = 0xFC18

Have 0x10E1 rupees

.org 0x8008AEEC
	SD R0, 0x0230(S6)				;Clear the digits
	ADDIU T3, R0, 0x0000			;Clear T3
	NOP
.org 0x8008AF04
	SLTI	AT, V0, 0x03E8			;Set if you have less than 1000 rupees
	BNE		AT, R0, 0x8008AF20		;Branch if you have less than 1000 rupees
	ADDIU	T3, T3, 0x0001			;Add 0x1 to digit
	ADDIU	V0, V0, 0xFC18			;T8 = Rupees - 1000
	SH		V0, 0x0236(S6)			;Store new rupee count
	BEQ		R0, R0, 0x8008AF04		;Branch back to start
	SH		T3, 0x0230(S6)			;Store 1000th digit
.org 0x8008AFAC
	LH		T2, 0x0230(T9)